import { getCurrentInstance } from "vue";

export const filters = {
	// 获取性别
	sexName: (sex: number) => {
		// 拿到minxi混入的属性值
		const { proxy } = getCurrentInstance();
		let result = proxy.sexList.find((obj) => obj.value == sex);
		return result ? result.name : "数据丢失";
	},
};
